
def print_counter(i, m=1000, n=100):
    "print i if it is a multiple of m, or a period if it is a multiple of n"
    if i==0: pass
    elif i % m == 0: print i,
    elif i % n == 0: print '.',
